package common.impl;

import java.nio.channels.SocketChannel;

import common.interfaces.IClient;


/**
 * @author  mickek
 */
public class ClientImpl implements IClient {
	
	private String userName;
	
	private int state = NULL;

	private long lastActive;
	
	public ClientImpl() {
	}
	
	public ClientImpl(String _userName) {
		userName = _userName;
	}

	/**
	 * @see  IClient
	 * @uml.property  name="userName"
	 */
	public String getUserName() {
		return userName;
	}
	
	/**
	 * @see  IClient
	 * @uml.property  name="userName"
	 */
	public void setUserName(String _userName) {
		userName = _userName;
	}

	
	public int getState() {
		return state;
	}
	

	public void setState( int _state ) {
		state = _state;
	}

	public long lastActive() {
		return lastActive;
	}

	public void activity() {
		long n = System.currentTimeMillis();
		lastActive = n;
		
	}





}
